package com.sofwin.system.service;

import com.github.pagehelper.PageInfo;
import com.sofwin.pojo.SysRole;

import java.util.List;

/**
 * @packageName: com.sofwin.system.service
 * @user: andyliu
 * @date: 2021/12/16 15:46
 * @email 115176513@qq.com
 * @description: TODO
 */

public interface RoleService {
    PageInfo<SysRole> selectByPage(SysRole role, Integer pageNumber, Integer pageSize);

    boolean deleteByIds(Integer[] ids);

    boolean deleteById(Integer id);

    boolean saveOrUpdate(SysRole role);

    SysRole selectById(Integer id);

    boolean savePermission(Integer roleId, Integer[] ids);

    List<String> getRolePermissions(Integer roleId);

}
